package com.kantboot.functional.third.party.wechat.exception;

import com.kantboot.util.common.exception.BaseException;

/**
 * 第三方微信异常类
 */
public class FunctionalThirdPartyWechatException {

    /**
     *  微信小程序的code无效
     *  BaseException.of("invalidCode", "code无效");
     */
    public static final BaseException WECHAT_MP_CODE_INVALID = BaseException.of("wechatMpCodeInvalid", "code无效");

    /**
     *  微信小程序的appid无效
     *  BaseException.of( "invalidAppid", "appid无效");
     */
    public static final BaseException WECHAT_MP_APPID_INVALID = BaseException.of("wechatMpAppidInvalid", "appid无效");

    /**
     *  微信小程序的频率限制
     *  BaseException.of( "frequencyLimit", "频率限制");
     */
    public static final BaseException WECHAT_MP_FREQUENCY_LIMIT = BaseException.of("wechatMpFrequencyLimit", "频率限制");

    /**
     *  微信小程序的code被拦截
     *  BaseException.of("codeBlocked", "code被拦截");
     */
    public static final BaseException WECHAT_MP_CODE_BLOCKED = BaseException.of("wechatMpCodeBlocked", "code被拦截");

    /**
     *  微信小程序的系统错误
     *  BaseException.of("systemError", "系统错误");
     */
    public static final BaseException WECHAT_MP_SYSTEM_ERROR = BaseException.of("wechatMpSystemError", "系统错误");

    /**
     * 登录失败
     * loginFail
     */
    public static final BaseException LOGIN_FAIL = BaseException.of("loginFail", "登录失败");


}
